#define cet_ucs4_to_ansi_x3_4_1968_ct 1
-const cet_ucs4_link_t cet_ucs4_to_ansi_x3_4_1968_links[cet_ucs4_to_ansi_x3_4_1968_ct] = {{0}};
+const cet_ucs4_link_t cet_ucs4_to_ansi_x3_4_1968_links[cet_ucs4_to_ansi_x3_4_1968_ct] = {{0, 0}};
// #define cet_ucs4_to_ansi_x3_4_1968_extra_ct 200
#define cet_ucs4_to_iso_8859_1_ct 1
-const cet_ucs4_link_t cet_ucs4_to_iso_8859_1_links[cet_ucs4_to_iso_8859_1_ct] = {{0}};
+const cet_ucs4_link_t cet_ucs4_to_iso_8859_1_links[cet_ucs4_to_iso_8859_1_ct] = {{0, 0}};
/*
#define cet_ucs4_to_iso_8859_1_extra_ct 0
cet_cs_vec_t cet_cs_vec_utf8 = {
CET_CHARSET_UTF8,
cet_cs_utf8_alias,
- NULL, /* dec */
- NULL, /* enc */
- NULL, /* link */
+ NULL,
+ NULL,
+ NULL,
+ 0,
0,
+ NULL,
+ 0,
+ NULL,
0,
- NULL, /* extra */
- 0, /* extras */
NULL,
- 0
};
void
static void
cet_convert_route_tlr(const route_head* route)
{
+ (void)route;
}
/* %%% cet_convert_strings (public) %%%
{
char* cs_name_from, *cs_name_to;
+ (void)format;
+
converter = NULL;
if ((source == NULL) || (source == &cet_cs_vec_utf8)) {
int
writehms(char* buff, size_t bufsize, const char* format, time_t t, int gmt)
{
- static struct tm no_time = {0};
+ static struct tm no_time = tm();
static struct tm* stmp = &no_time;
if (gmt) {
static void
xcsv_noop(const route_head* wp)
{
+ (void)wp;
/* no-op */
}
{
garmin_fs_t* gmsd = GMSD_FIND(wpt);
+ (void)protoid; // unused for now.
+
if (gmsd == NULL) {
return;
}
static gbfile*
memapi_open(gbfile* self, const char* mode)
{
+ (void)mode;
+
self->mempos = 0;
self->memsz = 0;
self->handle.mem = NULL;
static int
memapi_flush(gbfile* self)
{
+ (void)self;
return 0;
}
static void
memapi_clearerr(gbfile* self)
{
+ (void)self;
return;
}
static int
memapi_error(gbfile* self)
{
+ (void)self;
return 0;
}
time_left = *ms - elapsed(&tv);
if (FD_ISSET(h->fd, &rec)) {
+#if 0
+ // See below comment.
+
unsigned vmin = 0, vtime = 0;
if (time_left >= 100) {
vmin = want - h->inbuf_used;
vtime = (unsigned) time_left / 100;
}
+#endif
// The commented out call to set_rx_timeout here is totally
// legal by POSIX standards but does result in a flurry of
// of tcsetattrs that slightly tweak VMIN/VTIME while there
double E0, double N0, double a, double b)
{
double p2;
- double po2;
double a2;
double b2;
double e2;
double c2;
double c3;
double om0;
+#if 0
double A0;
double A1;
double A2;
double A3;
+#endif
double j;
double te4;
double phi0s2;
double phi0s4;
double phi0s6;
double lat;
+#if 0
double x;
double E1;
double E2;
double E3;
double E4;
+#endif
double phis;
double phic;
p2 = (double)GPS_PI * (double)2.;
- po2 = (double)GPS_PI / (double)2.;
a2 = a*a;
b2 = b*b;
AM0 = a * (lat-phi0s2+phi0s4-phi0s6);
om0 = (double)1.0 - e2;
+#if 0
+ // None of this is used -- is there a reason to keep it?
x = pow(om0,(double)0.5);
E1 = ((double)1.0 - x) / ((double)1.0 + x);
E2 = E1*E1;
A1 = (double)21.*E2/(double)16.-(double)55.*E4/(double)32.;
A2 = (double)151.*E3/(double)96.;
A3 = (double)1097.*E4/(double)512.;
+#endif
dlam = lambda - M0;
double eccPrimeSquared;
double e1;
double N1, T1, C1, R1, D, M;
- double mu, phi1, phi1Rad;
+ double mu, phi1Rad;
double x, y;
a = GPS_Ellipse[ReferenceEllipsoid].a;
phi1Rad = mu+ (3*e1/2-27*e1*e1*e1/32)*sin(2*mu) +
(21*e1*e1/16-55*e1*e1*e1*e1/32)*sin(4*mu) +
(151*e1*e1*e1/96)*sin(6*mu);
- phi1 = GPS_Math_Rad_To_Deg(phi1Rad);
N1 = a/sqrt(1-eccSquared*sin(phi1Rad)*sin(phi1Rad));
T1 = tan(phi1Rad)*tan(phi1Rad);